<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<title>{$webPageTitle}</title>
	<base id="headbase" href="__TMPL__/seatsel/" />
<style type="text/css">
	*{margin:0;padding:0;}
	a{text-decoration:none;color:black;}
	body{background-color:#e9e9eb;}
	header{display:block!important;line-height:40px!important;background:#ea5946;color:#fff!important;text-align:center;word-spacing:nowrap;overflow:hidden;font-size:18px;position:relative;margin-bottom:10px;}
	section{background:white;margin:3px 0;}
	section a{display:block;padding:10px;}
	section img{vertical-align:middle;width: 60px;height: 30px;border: 1px solid #ccc;margin-right:10px;}
</style>
</head>
<body>
<section>
	<center>
		<br>
		<h2>重要提示</h2>
		<br>
		<h4>请点击右上角从浏览器打开完成支付</h4>
		<br>
	</center>
</section>

<section>
	<center>
		<a href="javascript:void(-1);" onclick="goPay();">
			<span><img src="images/pay/alipay_big.png">支付宝付款</span>
			<if condition="$isWeixin">
				<span>(请从右上角浏览器打开)</span>
			</if>
		</a>
	</center>
</section>

</body>
<script>
var url = "{$returnUrl}";
function goPay(){
	return false;
	if(is_weixin()) {
		if(confirm('您确定要在当前页面使用支付宝支付吗？')) {
			window.location = url;
		}
	} else {
		window.location = url;
	}
}

function is_weixin(){
	var ua = navigator.userAgent.toLowerCase();
	if(ua.match(/MicroMessenger/i)=="micromessenger") {
		return true;
 	} else {
		return false;
	}
}
</script>
</html>